home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games to Treasure
/
Games to Treasure - Disc 2.iso
/
go.bat
< prev
next >
Wrap
DOS Batch File
|
1994-03-04
|
3KB
|
107 lines
@echo off
if A == %cdr% goto startup
if a == %cdr% goto startup
if B == %cdr% goto startup
if b == %cdr% goto startup
if C == %cdr% goto startup
if c == %cdr% goto startup
if D == %cdr% goto startup
if d == %cdr% goto startup
if E == %cdr% goto startup
if e == %cdr% goto startup
if F == %cdr% goto startup
if f == %cdr% goto startup
if G == %cdr% goto startup
if g == %cdr% goto startup
if H == %cdr% goto startup
if h == %cdr% goto startup
if I == %cdr% goto startup
if i == %cdr% goto startup
if J == %cdr% goto startup
if j == %cdr% goto startup
if K == %cdr% goto startup
if k == %cdr% goto startup
if L == %cdr% goto startup
if l == %cdr% goto startup
if M == %cdr% goto startup
if m == %cdr% goto startup
if N == %cdr% goto startup
if n == %cdr% goto startup
if O == %cdr% goto startup
if o == %cdr% goto startup
if P == %cdr% goto startup
if p == %cdr% goto startup
if Q == %cdr% goto startup
if q == %cdr% goto startup
if R == %cdr% goto startup
if r == %cdr% goto startup
if S == %cdr% goto startup
if s == %cdr% goto startup
if T == %cdr% goto startup
if t == %cdr% goto startup
if U == %cdr% goto startup
if u == %cdr% goto startup
if V == %cdr% goto startup
if v == %cdr% goto startup
if W == %cdr% goto startup
if w == %cdr% goto startup
if X == %cdr% goto startup
if x == %cdr% goto startup
if Y == %cdr% goto startup
if y == %cdr% goto startup
if Z == %cdr% goto startup
if z == %cdr% goto startup
goto fail
:startup
if n == %derml% goto rcdidx
if exist .\cdidx\cs\pic\emerald.gif \cdidx\cs\cshow \cdidx\cs\pic\emerald.gif+x >c:\nul
if exist .\cdidx\cs\pic\emerald.gif set derml=n
if exist .\cdidx\cs\pic\emerald.gif \cdidx\sleep 3
if not exist .\cdidx\cs\pic\emerald.gif goto fail
mode mono >c:\nul
mode co80 >c:\nul
cls
:rcdidx
%cdr%:
cd \cdidx
if not exist cdidx.exe goto fail
cdidx
cd \
mode mono >c:\nul
mode co80 >c:\nul
goto end
:fail
echo.
echo You must make the CD-ROM drive your default drive.
echo.
echo You must first run SETUP to initialize the variables. Then, if you wish
echo to make the setup effective each time you boot, you must run INSTALL.
echo.
echo You can also run UNINSTAL to remove the variables from your system's
echo environment as well as the AUTOEXEC.BAT
echo.
echo The system will now run SETUP unless you press ^C.
echo.
pause
cls
echo.
if not exist \cdidx\cdidx.exe echo You must be on the wrong drive. GO terminated.
if not exist \cdidx\cdidx.exe goto end
if exist \cdidx\cdidx.exe call setup
if n == %cont% goto end
echo.
echo After you exit CdIdx, you can run INSTALL to make the CdIdx information
echo a part of your AUTOEXEC.BAT so it will be correct each time you boot.
echo This is not required but will keep you from having to re-setup each time
echo you want to enter CdIdx.
echo.
echo The system will now attempt to start CdIdx unless you press ^C.
echo.
pause
goto startup
:end
set cont=